using FPLibrary;
using UnityEngine;

namespace PathX
{
    public class CellMatrixConfiguration : ICellMatrixConfiguration
    {
        public FPVector origin { get; set; }
        public int sizeX { get; set; }
        public int sizeZ { get; set; }
        public Fix64 cellSize { get; set; }
        public Fix64 obstacleSensitivityRange { get; set; }
        public FPBB bounds { get; set; }
        
        internal IGrid Create(CellMatrixData data)
        {
            var cellMatrix = CellMatrix.Create(this, data);

            return Grid.Create(cellMatrix);
        }
        
        public IGrid Create()
        {
            var cellMatrix = CellMatrix.Create(this);

            return Grid.Create(cellMatrix);
        }
    }
}